package mmc;

import java.util.zip.Deflater;

public class Settings {
	public static long PLAYER_MOVEMENT_UPDATE_NANOS = (long) 5e7; //Player sends his pos to server
	public static long CLIENT_UPDATE_NANOS = (long) 2.5e7; //Server sends world updates to player
	public static long CLIENT_CELL_SWEEP_NANOS = (long) 1e9;
	public static int  CLIENT_INITIAL_CHUNKUPDATE_RATE = 2;
	public static long CLIENT_PING_NANOS = (long) 1e9;
	public static boolean CLIENT_UPDATE_COMPRESSION = true;
	public static boolean CLIENT_STREAM_RESET = false;
	public static int CLIENT_UPDATE_COMPRESSION_LEVEL = Deflater.BEST_COMPRESSION;
	public static boolean CLIENT_TRACE_CHUNK_TRANSMISSION = false;
	
	public static float PLAYER_DEFAULT_VIEWDISTANCE = 40;
	public static float PLAYER_DEFAULT_MELEERANGE = 2;
	public static float PLAYER_DEFAULT_RANGE = 15;
	public static long  PLAYER_SPAWN_CHUNK_PROTECTION_TIME = (long) 4e9;
	
	public static float PHYSICS_MINIMAL_TIME_STEP = 1e-3f;
	public static float PHYSICS_GRAVITY = -30f;
	public static float PHYSICS_FRICTION = 0.995f;
	public static float PHYSICS_BOUNCYNESS = -0.5f;
	public static float PHYSICS_ABSORB_SPEED = 1e-5f;
	public static float PHYSICS_MAX_FALL_SPEED = -1e4f;
	
	public static float SHELL_MAX_CALC_TIME = 1e9f;
	public static float MAX_CHUNKS_GEN_TIME = 1e7f;
	
	public static float BOMB_LIFETIME = 3f;
	public static float BOMB_EXPLOSION_RANGE = 5f;
	
	public static String CELL_FULL_STORAGE_FILE = "/tmp/mmc/storage.zip";
}
